summaryrefslogtreecommitdiffstats
path: root/endpoint.php
blob: 7bfe495e4ed9dec54a62a7359ad1585db95ea0a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
<?php
	error_reporting(0);
	header("Content-Type: application/json");
	header("Access-Control-Allow-Origin: *");
	require "main.php";
	$g = new gimsisextClient();
	$g->setusername($_REQUEST['u']);
	$g->setpassword($_REQUEST['p']);
	echo json_encode($g->{$_REQUEST['m']}($_REQUEST['a'], $_REQUEST['b'], $_REQUEST['c'], $_REQUEST['d'], $_REQUEST['e']));
?>